package it.ilgrv.demiurgo.persistence.tables.character;

import it.ilgrv.demiurgo.persistence.tables.skill.Teacher;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Version;

/**
 * The persistent class for the pxLog database table.
 * 
 */
@Entity
public class PxLog extends it.ilgrv.demiurgo.persistence.GenericTable implements Serializable {
	private static final long	serialVersionUID	= 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int					id;

	private int					teachedSkill_id;

	private int					value;

	@Version
	private int					version;

	private String				description;

	// bi-directional many-to-one association to Character
	@ManyToOne
	private Character			character;

	// bi-directional many-to-one association to Teacher
	@ManyToOne
	private Teacher				teacher;

	public PxLog() {
	}

	public PxLog(int value, String description) {
		this.value = value;
		this.description = description;
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getTeachedSkill_id() {
		return this.teachedSkill_id;
	}

	public void setTeachedSkill_id(int teachedSkill_id) {
		this.teachedSkill_id = teachedSkill_id;
	}

	public int getValue() {
		return this.value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getVersion() {
		return this.version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public Character getCharacter() {
		return this.character;
	}

	public void setCharacter(Character character) {
		this.character = character;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}